﻿#ifndef BAIDUFACEAPI_H
#define BAIDUFACEAPI_H

#include <QObject>


#include <QFileDialog>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValue>

#include <QDebug>
#include <QList>

#include "http.h"
#include "common.h"

class BaiduFaceAPI : public QObject {
    Q_OBJECT
  public:
    explicit BaiduFaceAPI(QObject *parent = nullptr);

    static QByteArray imageToBase64(QString fileName);

    // 人脸搜索
    static UfInfo faceSearch(QString fileName);

    // 人脸注册
    static bool faceRegister(QString fileName, QString userId, QString userName);

    // 人脸更新
    static bool faceUpdate(QString fileName, QString userId, QString username);

  signals:


  private:

};




#endif // BAIDUFACEAPI_H
